package cn.ittest.properties;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


//@Data
@Component("ipProperties")
@ConfigurationProperties(prefix = "tools.ip")
public class IpProperties {
    /**
     * 日志的显示周期
     */
    private long cycle = 5L;
    /**
     * 是否周期内重置数据
     */
    private boolean cycleReset = false;

    public long getCycle() {
        return cycle;
    }

    public void setCycle(long cycle) {
        this.cycle = cycle;
    }

    public boolean isCycleReset() {
        return cycleReset;
    }

    public void setCycleReset(boolean cycleReset) {
        this.cycleReset = cycleReset;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    /**
     * 日志输出模式 detail:详细模式 simple:极简模式
     */
    private String model = LogModel.DETAIL.getValue();

    public enum LogModel{
        DETAIL("detail"),
        SIMPLE("simple");

        private String value;

        LogModel(String value){this.value = value;}

        public String getValue() {
            return value;
        }


    }



}
